Optimal. Leaf size=180 \[ \frac {(A+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {(A-9 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(A-9 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{10 d \left (a^3 \cos (c+d x)+a^3\right )}+\frac {2 (2 A-3 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 a d (a \cos (c+d x)+a)^2}-\frac {(A+C) \sin (c+d x) \sqrt {\cos (c+d x)}}{5 d (a \cos (c+d x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.52, antiderivative size = 180, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4114, 3042, 2978, 2748, 2641, 2639} \[ \frac {(A+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {(A-9 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(A-9 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{10 d \left (a^3 \cos (c+d x)+a^3\right )}+\frac {2 (2 A-3 C) \sin (c+d x) \sqrt {\cos (c+d x)}}{15 a d (a \cos (c+d x)+a)^2}-\frac {(A+C) \sin (c+d x) \sqrt {\cos (c+d x)}}{5 d (a \cos (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2748
Rule 2978
Rule 3042
Rule 4114
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^3} \, dx &=\int \frac {C+A \cos ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))^3} \, dx\\ &=-\frac {(A+C) \sqrt {\cos (c+d x)} \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {\int \frac {-\frac {1}{2} a (A-9 C)+\frac {1}{2} a (7 A-3 C) \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {(A+C) \sqrt {\cos (c+d x)} \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {2 (2 A-3 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {\int \frac {\frac {1}{2} a^2 (A+21 C)+a^2 (2 A-3 C) \cos (c+d x)}{\sqrt {\cos (c+d x)} (a+a \cos (c+d x))} \, dx}{15 a^4}\\ &=-\frac {(A+C) \sqrt {\cos (c+d x)} \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {2 (2 A-3 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(A-9 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )}+\frac {\int \frac {\frac {5}{4} a^3 (A+3 C)-\frac {3}{4} a^3 (A-9 C) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx}{15 a^6}\\ &=-\frac {(A+C) \sqrt {\cos (c+d x)} \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {2 (2 A-3 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(A-9 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )}-\frac {(A-9 C) \int \sqrt {\cos (c+d x)} \, dx}{20 a^3}+\frac {(A+3 C) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{12 a^3}\\ &=-\frac {(A-9 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}+\frac {(A+3 C) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {(A+C) \sqrt {\cos (c+d x)} \sin (c+d x)}{5 d (a+a \cos (c+d x))^3}+\frac {2 (2 A-3 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{15 a d (a+a \cos (c+d x))^2}+\frac {(A-9 C) \sqrt {\cos (c+d x)} \sin (c+d x)}{10 d \left (a^3+a^3 \cos (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 6.79, size = 1436, normalized size = 7.98 \[ \text {result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.55, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (C \sec \left (d x + c\right )^{2} + A\right )} \sqrt {\cos \left (d x + c\right )}}{a^{3} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right )^{3} + 3 \, a^{3} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right )^{2} + 3 \, a^{3} \cos \left (d x + c\right )^{2} \sec \left (d x + c\right ) + a^{3} \cos \left (d x + c\right )^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + A}{{\left (a \sec \left (d x + c\right ) + a\right )}^{3} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 5.62, size = 451, normalized size = 2.51 \[ -\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (12 A \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+10 A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 A \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-108 C \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+30 C \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-54 C \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-2 A \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+138 C \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-24 A \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-24 C \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+17 A \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3 C \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3 A -3 C \right )}{60 a^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\cos \left (c+d\,x\right )}^{3/2}\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________